#ifndef __LCD_DRIVE_H
#define __LCD_DRIVE_H

#include <system.h>

#define RS     4
#define RW     5
#define E      6
#define D0     0
#define D1     1
#define D2     2
#define D3     3
#define D4     4
#define D5     5
#define D6     6
#define D7     7
#define CURSOR_ENABLE  (0b00001110)
#define CURSOR_DISABLE (0b00001100)
#define CURSOR_GLITTER (0b00001111)
#define CURSOR_STABLE  (0b00001110)

void LCD_busy_check(void);
void LCD_write_CMD(unsigned char comm);
void LCD_write_DAT(unsigned char dat);
void LCD_init(void);
void LCD_disp_line1(char* strings);
void LCD_disp_line2(char* strings);
void LCD_set_cursor(unsigned char x, unsigned char y);
void LCD_Clear(void);

#endif 